from django.conf.urls.defaults import *
from lab.userpanel.models import Profile

userpanel_dict = {
	'queryset' : Profile.objects.all(),
}

urlpatterns = patterns('django.views.generic',
	(r'^update/(?P<object_id>\d+)/$','create_update.update_object',dict(model = Profile, post_save_redirect='/userpanel/')),
	(r'^(?P<object_id>\d+)/$', 'list_detail.object_detail',userpanel_dict),
	#(r'^$', 'list_detail.object_list',userpanel_dict),
)

urlpatterns += patterns('',
	(r'^$', 'lab.userpanel.views.people_list'),
)